<template>
	<div class="repairList">
		<van-nav-bar title="已维修设备列表" @click-left='goBack()' left-arrow=""></van-nav-bar>
		<device-list @goNext='goNext' :showDepartment='false' :deviceList='deviceList'></device-list>
	</div>
</template>

<script>
	import deviceList from '../subcom/deviceList.vue'
	export default{
		data(){
			return{
				deviceList:[]
			}
		},
		created() {
			this.getDevice()
		},
		methods:{
			goNext(){
				this.$router.push({name:'repairDetail'})
			},
			getDevice(){
				this.$axios.get(this.url.getAllDevice).then(res=>{
					if(res.data.status === 200){
						this.deviceList = res.data.data
						console.log(this.deviceList)
					}
				})
			},
		},
		components:{deviceList}
	}
</script>

<style>
</style>
